package demo1;

/**
 * @Author 12629
 * @Description：
 */
public class OuterClass {
    public int data1 = 1;
    private int data2 = 2;
    public static int data3 = 3;

    static class InnerClass {
        public int data4 = 4;

        public void test() {
            System.out.println("inner::test()");
           /* OuterClass out = new OuterClass();
            System.out.println(out.data1);
            System.out.println(out.data2);*/
            System.out.println(data3);
            System.out.println(data4);
        }
    }

    public static void func() {
        OuterClass out = new OuterClass();
        System.out.println(out.data1);
    }
}
